package team.first.movieapiv2pro.doc;

import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.mongodb.doc
 * @Date: 2021/12/9 13:23
 * @Description:
 */
@Entity(value = "comment", useDiscriminator = false)
@ToString
@Accessors(chain = true)
@Getter
@Setter
@ApiModel("评论文档")
public class CommentDoc {
    @Id
    @ApiModelProperty(value = "文档编号", example = "619f48fae2f3f25894660f71")
    private ObjectId objId;
    @ApiModelProperty(value = "类型编号", example = "1019125")
    private Integer id;
    @ApiModelProperty(value = "电影编号", example = "498322")
    private Integer movieId;
    @ApiModelProperty(value = "用户编号", example = "1020")
    private Integer userId;
    @ApiModelProperty(value = "昵称", example = "古飞扬")
    private String nickname;
    @ApiModelProperty(value = "评论内容", example = "而在这时候，周星星反而借〈功夫〉电影， ")
    private String content;
    @ApiModelProperty(value = "照片名", example = "杨乐自拍")
    private String avatar;
    @ApiModelProperty(value = "创建时间", example = "2021-12-20 12:34:59")
    private String createdAt;
    @ApiModelProperty(value = "评分", example = "8")
    private Integer rating;


}
